:root {
    --hue: 180;
    --saturation: 50%;
    --lightness: 50%;
 }
  
 body {
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: hsl(var(--hue), var(--saturation), var(--lightness));
    transition: background-color 0.3s;
    font-family: 'Microsoft YaHei', sans-serif;
 }
  
 .controls-container {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
 }
  
 .control-group {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 250px; /* 设置最小宽度以容纳所有元素 */
    transition: all 0.3s ease;
 }
  
 .color-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 180px; /* 默认情况下显示完整的滑块 */
    height: 40px;
    margin: 0;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
 }
  
 /* 滑块轨道 */
 .color-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    margin-top: 15px;
 }
  
 .color-slider::-moz-range-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
 }
  
 /* 滑块按钮 */
 .color-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 30px;
    height: 30px;
    background: hsl(var(--hue), 80%, 60%);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%);
    transition: all 0.3s ease;
 }
  
 .color-slider::-moz-range-thumb {
    width: 30px;
    height: 30px;
    background: hsl(var(--hue), 80%, 60%);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%);
 }
  
 /* 数值输入框 */
 .value-input {
    width: 60px;
    background: transparent;
    border: none;
    color: white;
    font-size: 14px;
    padding: 5px;
    outline: none;
 }
  
 /* 标签样式 */
 .control-label {
    color: white;
    font-size: 16px;
 }
  
 /* 动态数值显示 */
 .control-group::after {
    content: attr(data-value);
    color: white;
    font-size: 14px;
    pointer-events: none;
 }
  
 /* 不同滑块颜色 */
 .control-group:nth-child(2) .color-slider::-webkit-slider-thumb {
    background: hsl(180, var(--saturation), 60%);
 }
 .control-group:nth-child(3) .color-slider::-webkit-slider-thumb {
    background: hsl(180, 50%, var(--lightness));
 }
 .control-group:nth-child(2) .color-slider::-moz-range-thumb {
    background: hsl(180, var(--saturation), 60%);
 }
 .control-group:nth-child(3) .color-slider::-moz-range-thumb {
    background: hsl(180, 50%, var(--lightness));
 }
 